{template header}

<script language="javascript" type="text/javascript" src="{SITE_URL}public/js/date/WdatePicker.js?4.72"></script>
<script>
var n=2;
function addoption(){
	n++
	$("#before").before('<p>'+n+'、<input type="text" name="option[]" /></p>');
}

</script>
<div class="container">

<ol class="breadcrumb">
  <li><a href="{SITE_URL}">首页</a></li>
  <li><a href="{tsUrl('vote')}">投票</a></li>
  <li class="active">发布投票</li>
</ol>

<div class="panel panel-default">
  <div class="panel-body">

<div class="row">



<div class="col-md-2"></div>

<div class="col-md-8">


  
  

<form method="post" action="{SITE_URL}index.php?app=vote&ac=add&ts=do">


  <div class="form-group">
    <label>投票主题</label>
    <input name="topic" type="text" class="form-control">
  </div>
  
  <div class="form-group">
    <label>投票说明</label>
    <div id="tseditor"></div>
    <div style="display: none;">
      <textarea name="content"></textarea>
    </div>
    <!--<textarea name="content" id="tseditor"></textarea>-->
  </div>
  
  
  <div class="form-group">
    <label>类型</label>
			<select name="type">
				<option value="0">- 单选 -</option>
				<option value="1">- 多选 -</option>
			</select>
  </div>
  
  <div class="form-group">
    <label>选项</label>
<p>1、<input type="text" name="option[]" /></p>
<p>2、<input type="text" name="option[]" /></p>


<p  id="before"><a class="bottomA" href="javascript:void('0');" onclick="addoption();">增加选项</a></p>
  </div>
  
  <div class="form-group">
    <label>开始时间：</label>
<input type="text" name="addtime" value="{php echo date('Y-m-d H:i:s')}" readonly />
  </div>
  
  
  <div class="form-group">
    <label>结束时间：</label>
<input value="选择时间" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'{php echo date('Y-m-d')} 00:00:00'})" readonly  name="endtime"  />
  </div>
  
<input class="btn btn-success" type="submit" value="发起投票">


</form>








</div>

<div class="col-md-2"></div>

</div>
</div>
</div>


</div>



</div>
{php doAction('tseditor')}
{template footer}